#!/usr/bin/env python3

import sys
sys.path.append('../../../tools')
from gmcore_plot import *

f = xr.open_dataset('swm_sg.360x180.h0.nc')

fig = plt.figure(figsize=(6, 4))

plt.plot(f.lat, f.u[ 0,0,:,:].mean(dim='lon'), linestyle='-', color='red')
plt.plot(f.lat, f.u[-1,0,:,:].mean(dim='lon'), linestyle='-', color='blue')

plt.show()